﻿<controls:ChildWindow x:Class="AuroraPlatform.LoginWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
           Width="400" Height="235" Title="登录" FontSize="13" FontFamily="Arial,Microsoft YaHei,NSimSun,SimHei" Language="zh-CN">
    <controlsToolkit:BusyIndicator x:Name="busy" BusyContent="正在登陆，请稍等......">
        <Grid x:Name="LayoutRoot" Margin="2">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="40" />
            </Grid.RowDefinitions>

            <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0, 20, 0,0">
                <TextBlock Text="用户名" HorizontalAlignment="Left" Foreground="Gray" FontSize="12"/>
                <TextBox x:Name="UserName" TabIndex="1" HorizontalAlignment="Left" FontSize="14" Height="30" Width="305" Margin="0, 2,0 ,0"/>
                <TextBlock Text="密码" HorizontalAlignment="Left" Foreground="Gray" Margin="0, 10, 0, 0" FontSize="12"/>
                <PasswordBox x:Name="UserPassword" KeyDown="UserPassword_KeyDown" TabIndex="2" PasswordChar="*" HorizontalAlignment="Left" FontSize="14"  Margin="0,2,0 ,0" Height="30" Width="305"/>
                <CheckBox Name="AutoLogin" Content="自动登录" Margin="0, 10, 0, 0" FontSize="12" Foreground="Gray"/>
            </StackPanel>
            
            <Button TabIndex="3" x:Name="LoginBtn" Width="80" Height="25" HorizontalAlignment="Center" Grid.Row="1" VerticalAlignment="Top">
                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                    <Image Source="Images/Login.png" Width="16" Height="16" VerticalAlignment="Center"/>
                    <TextBlock Text="登    录" Margin="5,0,0,0" VerticalAlignment="Center"/>
                </StackPanel>
            </Button>
        </Grid>
    </controlsToolkit:BusyIndicator>
</controls:ChildWindow>